package com.kot.backend.consumer.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
public class Tank extends Thread{
    private Integer id;//主人的id
    private Integer r,c;//初始位子
    private String playerKind;//坦克种类：playerA(黄坦克)和playerB(紫坦克)

    private Boolean tag = true;

    public void setTag(Boolean tag) {
        this.tag = tag;
    }

    @Override
    public void run() {
        while (tag){



            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
